/**
 * 
 */
package com.wolfpire.proms.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 指标角色关系
 * @author lihd
 *
 */

@Entity
@Table(name = "t_project_index_role")
public class ProjectIndexRoleRelation implements Serializable {
	
	private static final long serialVersionUID = 2105063191649970622L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, length = 16)
	private Long id;//主键Id
	
	@Column(name = "project_index_id", length = 32)
	private Long projectIndexId; //项目指标Id
	
	@Column(name = "role_id", length = 32)
	private Long roleId; //角色Id

	public ProjectIndexRoleRelation() {
		super();
	}

	public ProjectIndexRoleRelation(Long id, Long projectIndexId, Long roleId) {
		super();
		this.id = id;
		this.projectIndexId = projectIndexId;
		this.roleId = roleId;
	}

	public ProjectIndexRoleRelation(Long projectIndexId, Long roleId) {
		super();
		this.projectIndexId = projectIndexId;
		this.roleId = roleId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getProjectIndexId() {
		return projectIndexId;
	}

	public void setProjectIndexId(Long projectIndexId) {
		this.projectIndexId = projectIndexId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

}
